package com.gopay.common.mq.message;

import org.apache.commons.lang3.builder.ToStringBuilder;

import java.io.Serializable;

/**
 * 上行封装
 * @Author wangdong(420689006@qq.com)
 * @Date 2016-10-31 15:03:55
 */
public class UpstreamMsg implements Serializable{

    private String type; // 0、反馈类；1、主动上报类

    private String txCode; //反馈类必填，需要翻译成反馈类的交易码

    private Long tableId; //下行指令ID，反馈类必填

    private Upstream upstream; //主动上报类必填

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTxCode() {
        return txCode;
    }

    public void setTxCode(String txCode) {
        this.txCode = txCode;
    }

    public Long getTableId() {
        return tableId;
    }

    public void setTableId(Long tableId) {
        this.tableId = tableId;
    }

    public Upstream getUpstream() {
        return upstream;
    }

    public void setUpstream(Upstream upstream) {
        this.upstream = upstream;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }

}
